package org.csu.agrisupply.api.service;

import org.csu.agrisupply.api.common.CommonResponse;
import org.csu.agrisupply.api.entity.FormOffer;
import org.csu.agrisupply.api.entity.FormOrder;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface FormOrderService {
    //得到所有订货订单
    CommonResponse<List<FormOrder>> getFormOrderList();
    //得到单个订货订单
    CommonResponse<FormOrder> getFormOrder(@PathVariable("id") String orderId);
    //生成订单
    CommonResponse<FormOrder> createFormOrder(@PathVariable("id") String formId, String userId);
}
